<?php include ("inc/check_authen/check_authen.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="stylesheet" href="admin_css/template_admin.css" type="text/css" />
 <link rel="stylesheet" href="admin_css/product.css" type="text/css" />
 <script type="text/javascript" src="js/page_function/info.js"></script>	

<title>Admin Page | ลูกค้าของเรา</title>
</head>

<body>
<div class="container">
	<?php include("inc/layout/header/header.php");?>
    <?php include("inc/layout/navigator/navigator.php");?>
    <?php include("command/rawdata/getAdminInfoForEdit.php");?>  
  	<div class="content"> 
	  	<div id="aboutus">
	  		<div class="button_topic" style="padding-left: 22px;">ข้อมูลส่วนตัว</div> 
	  		<table id="box-table-a">
			  <thead>

		  		<tr>
			  		<td class="col1" style="width: 150px;"> ชื่อต้น : </td>
			  		<td style="width: 300px;"><input type="text" id="info_txtPrename" name ="info_txtPrename" style="width: 200px;" value="<?=$prename?>"></input></td>
		  		</tr>
	  			<tr>
			  		<td class="col1"> ชื่อ : </td>
			  		<td><input type="text" id="info_txtFirstname" name ="info_txtFirstname" style="width: 200px;" value="<?=$firstname?>"></input></td>
		  		</tr>
		  		<tr>
			  		<td class="col1"> นามสกุล : </td>
			  		<td><input type="text" id="info_txtLastname" name ="info_txtLastname" style="width: 200px;" value="<?=$lastname?>"></input></td>
		  		</tr>
		  		<tr>
			  		<td class="col1"> Username : </td>
			  		<td>
			  			<input type="text" id="info_txtUsername" name ="info_txtUsername" style="width: 200px;" value="<?=$username?>"></input>
			  		</td>
		  		</tr>
		  		<tr>
			  		<td class="col1"> Password : </td>
			  		<td>
			  			<input type="password" style="width: 200px;" value="xxxxxx" class="txtDisable" disabled></input>
			  			<a id="info_achangePass" href="#" onClick="info_editPass()"><br />เปลี่ยนรหัสผ่านใหม่</a>  						
			  		</td>
		  		</tr>
		  		</thead>
	  		</table>
	  		<a href="#" onClick="info_update('<?=$password ?>')"><img src="images/symbol/edit_button.png" alt="" /></a>
	   	</div>   
    <!--end admin_index-->
   </div>
	<!-- end .content --> 
	<form action="command/rawdata/updateAdminInfo.php" name="formSubmit" method="post">
		<input type="hidden" id="webmaster_prename" name="webmaster_prename" value=""></input>
		<input type="hidden" id="webmaster_firstname" name="webmaster_firstname" value=""></input>
		<input type="hidden" id="webmaster_lastname" name="webmaster_lastname" value=""></input>
		<input type="hidden" id="webmaster_username" name="webmaster_username" value=""></input>
		<input type="hidden" id="webmaster_oldpassword" name="webmaster_oldpassword" value=""></input>
		<input type="hidden" id="webmaster_password" name="webmaster_password" value=""></input>
		<input type="hidden" id="webmaster_newpassword" name="webmaster_newpassword" value=""></input>
		<input type="hidden" id="webmaster_chkpassword" name="webmaster_chkpassword" value=""></input>
	</form>
	<?php include("inc/layout/footer/footer.php");?>
</div>
 <!-- end .container -->
</body>
</html>